<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>killerbee.openear.gps.client</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="killerbee-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            ><a class="navbar" target="_top" href="http://code.google.com/p/killerbee/">KillerBee</a></th>
          </tr></table></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        <a href="killerbee-module.html">Package&nbsp;killerbee</a> ::
        <a href="killerbee.openear-module.html">Package&nbsp;openear</a> ::
        <a href="killerbee.openear.gps-module.html">Package&nbsp;gps</a> ::
        Module&nbsp;client
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
    onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
        <tr><td align="right"><span class="options"
            >[<a href="frames.html" target="_top">frames</a
            >]&nbsp;|&nbsp;<a href="killerbee.openear.gps.client-pysrc.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<h1 class="epydoc">Source Code for <a href="killerbee.openear.gps.client-module.html">Module killerbee.openear.gps.client</a></h1>
<pre class="py-src">
<a name="L1"></a><tt class="py-lineno">  1</tt>  <tt class="py-line"><tt class="py-comment"># This file is Copyright (c) 2010 by the GPSD project</tt> </tt>
<a name="L2"></a><tt class="py-lineno">  2</tt>  <tt class="py-line"><tt class="py-comment"># BSD terms apply: see the file COPYING in the distribution root for details.</tt> </tt>
<a name="L3"></a><tt class="py-lineno">  3</tt>  <tt class="py-line"><tt class="py-comment">#</tt> </tt>
<a name="L4"></a><tt class="py-lineno">  4</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt class="py-name">time</tt><tt class="py-op">,</tt> <tt class="py-name">socket</tt><tt class="py-op">,</tt> <tt class="py-name">sys</tt><tt class="py-op">,</tt> <tt class="py-name">select</tt> </tt>
<a name="L5"></a><tt class="py-lineno">  5</tt>  <tt class="py-line"> </tt>
<a name="L6"></a><tt class="py-lineno">  6</tt>  <tt class="py-line"><tt class="py-keyword">if</tt> <tt class="py-name">sys</tt><tt class="py-op">.</tt><tt class="py-name">hexversion</tt> <tt class="py-op">&gt;=</tt> <tt class="py-number">0x2060000</tt><tt class="py-op">:</tt> </tt>
<a name="L7"></a><tt class="py-lineno">  7</tt>  <tt class="py-line">    <tt class="py-keyword">import</tt> <tt class="py-name">json</tt>                 <tt class="py-comment"># For Python 2.6</tt> </tt>
<a name="L8"></a><tt class="py-lineno">  8</tt>  <tt class="py-line"><tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L9"></a><tt class="py-lineno">  9</tt>  <tt class="py-line">    <tt class="py-keyword">import</tt> <tt class="py-name">simplejson</tt> <tt class="py-keyword">as</tt> <tt class="py-name">json</tt>   <tt class="py-comment"># For Python 2.4 and 2.5</tt> </tt>
<a name="L10"></a><tt class="py-lineno"> 10</tt>  <tt class="py-line"> </tt>
<a name="L11"></a><tt class="py-lineno"> 11</tt>  <tt class="py-line"><tt id="link-0" class="py-name" targets="Variable killerbee.openear.gps.GPSD_PORT=killerbee.openear.gps-module.html#GPSD_PORT,Variable killerbee.openear.gps.client.GPSD_PORT=killerbee.openear.gps.client-module.html#GPSD_PORT,Variable killerbee.openear.gps.gps'.GPSD_PORT=killerbee.openear.gps.gps%27-module.html#GPSD_PORT,Variable killerbee.zbwardrive.gps.GPSD_PORT=killerbee.zbwardrive.gps-module.html#GPSD_PORT,Variable killerbee.zbwardrive.gps.client.GPSD_PORT=killerbee.zbwardrive.gps.client-module.html#GPSD_PORT,Variable killerbee.zbwardrive.gps.gps'.GPSD_PORT=killerbee.zbwardrive.gps.gps%27-module.html#GPSD_PORT"><a title="killerbee.openear.gps.GPSD_PORT
killerbee.openear.gps.client.GPSD_PORT
killerbee.openear.gps.gps'.GPSD_PORT
killerbee.zbwardrive.gps.GPSD_PORT
killerbee.zbwardrive.gps.client.GPSD_PORT
killerbee.zbwardrive.gps.gps'.GPSD_PORT" class="py-name" href="#" onclick="return doclink('link-0', 'GPSD_PORT', 'link-0');">GPSD_PORT</a></tt><tt class="py-op">=</tt><tt class="py-string">"2947"</tt> </tt>
<a name="L12"></a><tt class="py-lineno"> 12</tt>  <tt class="py-line"> </tt>
<a name="gpscommon"></a><div id="gpscommon-def"><a name="L13"></a><tt class="py-lineno"> 13</tt> <a class="py-toggle" href="#" id="gpscommon-toggle" onclick="return toggle('gpscommon');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="killerbee.openear.gps.client.gpscommon-class.html">gpscommon</a><tt class="py-op">:</tt> </tt>
</div><div id="gpscommon-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="gpscommon-expanded"><a name="L14"></a><tt class="py-lineno"> 14</tt>  <tt class="py-line">    <tt class="py-docstring">"Isolate socket handling and buffering from the protcol interpretation."</tt> </tt>
<a name="gpscommon.__init__"></a><div id="gpscommon.__init__-def"><a name="L15"></a><tt class="py-lineno"> 15</tt> <a class="py-toggle" href="#" id="gpscommon.__init__-toggle" onclick="return toggle('gpscommon.__init__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="killerbee.openear.gps.client.gpscommon-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">host</tt><tt class="py-op">=</tt><tt class="py-string">"127.0.0.1"</tt><tt class="py-op">,</tt> <tt class="py-param">port</tt><tt class="py-op">=</tt><tt id="link-1" class="py-name"><a title="killerbee.openear.gps.GPSD_PORT
killerbee.openear.gps.client.GPSD_PORT
killerbee.openear.gps.gps'.GPSD_PORT
killerbee.zbwardrive.gps.GPSD_PORT
killerbee.zbwardrive.gps.client.GPSD_PORT
killerbee.zbwardrive.gps.gps'.GPSD_PORT" class="py-name" href="#" onclick="return doclink('link-1', 'GPSD_PORT', 'link-0');">GPSD_PORT</a></tt><tt class="py-op">,</tt> <tt class="py-param">verbose</tt><tt class="py-op">=</tt><tt class="py-number">0</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="gpscommon.__init__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="gpscommon.__init__-expanded"><a name="L16"></a><tt class="py-lineno"> 16</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">sock</tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt>        <tt class="py-comment"># in case we blow up in connect</tt> </tt>
<a name="L17"></a><tt class="py-lineno"> 17</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">linebuffer</tt> <tt class="py-op">=</tt> <tt class="py-string">""</tt> </tt>
<a name="L18"></a><tt class="py-lineno"> 18</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-2" class="py-name" targets="Variable killerbee.GoodFET.GoodFET.verbose=killerbee.GoodFET.GoodFET-class.html#verbose,Variable killerbee.GoodFETatmel128.GoodFETatmel128rfa1.verbose=killerbee.GoodFETatmel128.GoodFETatmel128rfa1-class.html#verbose"><a title="killerbee.GoodFET.GoodFET.verbose
killerbee.GoodFETatmel128.GoodFETatmel128rfa1.verbose" class="py-name" href="#" onclick="return doclink('link-2', 'verbose', 'link-2');">verbose</a></tt> <tt class="py-op">=</tt> <tt id="link-3" class="py-name"><a title="killerbee.GoodFET.GoodFET.verbose
killerbee.GoodFETatmel128.GoodFETatmel128rfa1.verbose" class="py-name" href="#" onclick="return doclink('link-3', 'verbose', 'link-2');">verbose</a></tt> </tt>
<a name="L19"></a><tt class="py-lineno"> 19</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-4" class="py-name" targets="Method killerbee.openear.gps.client.gpscommon.connect()=killerbee.openear.gps.client.gpscommon-class.html#connect,Method killerbee.zbwardrive.gps.client.gpscommon.connect()=killerbee.zbwardrive.gps.client.gpscommon-class.html#connect"><a title="killerbee.openear.gps.client.gpscommon.connect
killerbee.zbwardrive.gps.client.gpscommon.connect" class="py-name" href="#" onclick="return doclink('link-4', 'connect', 'link-4');">connect</a></tt><tt class="py-op">(</tt><tt class="py-name">host</tt><tt class="py-op">,</tt> <tt class="py-name">port</tt><tt class="py-op">)</tt> </tt>
</div><a name="L20"></a><tt class="py-lineno"> 20</tt>  <tt class="py-line"> </tt>
<a name="gpscommon.connect"></a><div id="gpscommon.connect-def"><a name="L21"></a><tt class="py-lineno"> 21</tt> <a class="py-toggle" href="#" id="gpscommon.connect-toggle" onclick="return toggle('gpscommon.connect');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="killerbee.openear.gps.client.gpscommon-class.html#connect">connect</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">host</tt><tt class="py-op">,</tt> <tt class="py-param">port</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="gpscommon.connect-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="gpscommon.connect-expanded"><a name="L22"></a><tt class="py-lineno"> 22</tt>  <tt class="py-line">        <tt class="py-docstring">"""Connect to a host on a given port.</tt> </tt>
<a name="L23"></a><tt class="py-lineno"> 23</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L24"></a><tt class="py-lineno"> 24</tt>  <tt class="py-line"><tt class="py-docstring">        If the hostname ends with a colon (`:') followed by a number, and</tt> </tt>
<a name="L25"></a><tt class="py-lineno"> 25</tt>  <tt class="py-line"><tt class="py-docstring">        there is no port specified, that suffix will be stripped off and the</tt> </tt>
<a name="L26"></a><tt class="py-lineno"> 26</tt>  <tt class="py-line"><tt class="py-docstring">        number interpreted as the port number to use.</tt> </tt>
<a name="L27"></a><tt class="py-lineno"> 27</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L28"></a><tt class="py-lineno"> 28</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt class="py-name">port</tt> <tt class="py-keyword">and</tt> <tt class="py-op">(</tt><tt class="py-name">host</tt><tt class="py-op">.</tt><tt class="py-name">find</tt><tt class="py-op">(</tt><tt class="py-string">':'</tt><tt class="py-op">)</tt> <tt class="py-op">==</tt> <tt class="py-name">host</tt><tt class="py-op">.</tt><tt class="py-name">rfind</tt><tt class="py-op">(</tt><tt class="py-string">':'</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L29"></a><tt class="py-lineno"> 29</tt>  <tt class="py-line">            <tt class="py-name">i</tt> <tt class="py-op">=</tt> <tt class="py-name">host</tt><tt class="py-op">.</tt><tt class="py-name">rfind</tt><tt class="py-op">(</tt><tt class="py-string">':'</tt><tt class="py-op">)</tt> </tt>
<a name="L30"></a><tt class="py-lineno"> 30</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">i</tt> <tt class="py-op">&gt;=</tt> <tt class="py-number">0</tt><tt class="py-op">:</tt> </tt>
<a name="L31"></a><tt class="py-lineno"> 31</tt>  <tt class="py-line">                <tt class="py-name">host</tt><tt class="py-op">,</tt> <tt class="py-name">port</tt> <tt class="py-op">=</tt> <tt class="py-name">host</tt><tt class="py-op">[</tt><tt class="py-op">:</tt><tt class="py-name">i</tt><tt class="py-op">]</tt><tt class="py-op">,</tt> <tt class="py-name">host</tt><tt class="py-op">[</tt><tt class="py-name">i</tt><tt class="py-op">+</tt><tt class="py-number">1</tt><tt class="py-op">:</tt><tt class="py-op">]</tt> </tt>
<a name="L32"></a><tt class="py-lineno"> 32</tt>  <tt class="py-line">            <tt class="py-keyword">try</tt><tt class="py-op">:</tt> <tt class="py-name">port</tt> <tt class="py-op">=</tt> <tt class="py-name">int</tt><tt class="py-op">(</tt><tt class="py-name">port</tt><tt class="py-op">)</tt> </tt>
<a name="L33"></a><tt class="py-lineno"> 33</tt>  <tt class="py-line">            <tt class="py-keyword">except</tt> <tt class="py-name">ValueError</tt><tt class="py-op">:</tt> </tt>
<a name="L34"></a><tt class="py-lineno"> 34</tt>  <tt class="py-line">                <tt class="py-keyword">raise</tt> <tt class="py-name">socket</tt><tt class="py-op">.</tt><tt class="py-name">error</tt><tt class="py-op">,</tt> <tt class="py-string">"nonnumeric port"</tt> </tt>
<a name="L35"></a><tt class="py-lineno"> 35</tt>  <tt class="py-line">        <tt class="py-comment">#if self.verbose &gt; 0:</tt> </tt>
<a name="L36"></a><tt class="py-lineno"> 36</tt>  <tt class="py-line">        <tt class="py-comment">#    print 'connect:', (host, port)</tt> </tt>
<a name="L37"></a><tt class="py-lineno"> 37</tt>  <tt class="py-line">        <tt class="py-name">msg</tt> <tt class="py-op">=</tt> <tt class="py-string">"getaddrinfo returns an empty list"</tt> </tt>
<a name="L38"></a><tt class="py-lineno"> 38</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">sock</tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L39"></a><tt class="py-lineno"> 39</tt>  <tt class="py-line">        <tt class="py-keyword">for</tt> <tt class="py-name">res</tt> <tt class="py-keyword">in</tt> <tt class="py-name">socket</tt><tt class="py-op">.</tt><tt class="py-name">getaddrinfo</tt><tt class="py-op">(</tt><tt class="py-name">host</tt><tt class="py-op">,</tt> <tt class="py-name">port</tt><tt class="py-op">,</tt> <tt class="py-number">0</tt><tt class="py-op">,</tt> <tt class="py-name">socket</tt><tt class="py-op">.</tt><tt class="py-name">SOCK_STREAM</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L40"></a><tt class="py-lineno"> 40</tt>  <tt class="py-line">            <tt class="py-name">af</tt><tt class="py-op">,</tt> <tt class="py-name">socktype</tt><tt class="py-op">,</tt> <tt class="py-name">proto</tt><tt class="py-op">,</tt> <tt class="py-name">canonname</tt><tt class="py-op">,</tt> <tt class="py-name">sa</tt> <tt class="py-op">=</tt> <tt class="py-name">res</tt> </tt>
<a name="L41"></a><tt class="py-lineno"> 41</tt>  <tt class="py-line">            <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L42"></a><tt class="py-lineno"> 42</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">sock</tt> <tt class="py-op">=</tt> <tt class="py-name">socket</tt><tt class="py-op">.</tt><tt class="py-name">socket</tt><tt class="py-op">(</tt><tt class="py-name">af</tt><tt class="py-op">,</tt> <tt class="py-name">socktype</tt><tt class="py-op">,</tt> <tt class="py-name">proto</tt><tt class="py-op">)</tt> </tt>
<a name="L43"></a><tt class="py-lineno"> 43</tt>  <tt class="py-line">                <tt class="py-comment">#if self.debuglevel &gt; 0: print 'connect:', (host, port)</tt> </tt>
<a name="L44"></a><tt class="py-lineno"> 44</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">sock</tt><tt class="py-op">.</tt><tt id="link-5" class="py-name"><a title="killerbee.openear.gps.client.gpscommon.connect
killerbee.zbwardrive.gps.client.gpscommon.connect" class="py-name" href="#" onclick="return doclink('link-5', 'connect', 'link-4');">connect</a></tt><tt class="py-op">(</tt><tt class="py-name">sa</tt><tt class="py-op">)</tt> </tt>
<a name="L45"></a><tt class="py-lineno"> 45</tt>  <tt class="py-line">            <tt class="py-keyword">except</tt> <tt class="py-name">socket</tt><tt class="py-op">.</tt><tt class="py-name">error</tt><tt class="py-op">,</tt> <tt class="py-name">msg</tt><tt class="py-op">:</tt> </tt>
<a name="L46"></a><tt class="py-lineno"> 46</tt>  <tt class="py-line">                <tt class="py-comment">#if self.debuglevel &gt; 0: print 'connect fail:', (host, port)</tt> </tt>
<a name="L47"></a><tt class="py-lineno"> 47</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-6" class="py-name" targets="Method killerbee.KillerBee.close()=killerbee.KillerBee-class.html#close,Method killerbee.daintree.DainTreeDumper.close()=killerbee.daintree.DainTreeDumper-class.html#close,Method killerbee.daintree.DainTreeReader.close()=killerbee.daintree.DainTreeReader-class.html#close,Method killerbee.dblog.DBLogger.close()=killerbee.dblog.DBLogger-class.html#close,Method killerbee.dblog.DBReader.close()=killerbee.dblog.DBReader-class.html#close,Method killerbee.dev_apimote.APIMOTE.close()=killerbee.dev_apimote.APIMOTE-class.html#close,Method killerbee.dev_freakduino.FREAKDUINO.close()=killerbee.dev_freakduino.FREAKDUINO-class.html#close,Method killerbee.dev_rzusbstick.RZUSBSTICK.close()=killerbee.dev_rzusbstick.RZUSBSTICK-class.html#close,Method killerbee.dev_telosb.TELOSB.close()=killerbee.dev_telosb.TELOSB-class.html#close,Method killerbee.dev_wislab.WISLAB.close()=killerbee.dev_wislab.WISLAB-class.html#close,Method killerbee.dev_zigduino.ZIGDUINO.close()=killerbee.dev_zigduino.ZIGDUINO-class.html#close,Method killerbee.openear.gps.client.gpscommon.close()=killerbee.openear.gps.client.gpscommon-class.html#close,Method killerbee.pcapdump.PcapDumper.close()=killerbee.pcapdump.PcapDumper-class.html#close,Method killerbee.pcapdump.PcapReader.close()=killerbee.pcapdump.PcapReader-class.html#close,Method killerbee.zbwardrive.db.ZBScanDB.close()=killerbee.zbwardrive.db.ZBScanDB-class.html#close,Method killerbee.zbwardrive.gps.client.gpscommon.close()=killerbee.zbwardrive.gps.client.gpscommon-class.html#close"><a title="killerbee.KillerBee.close
killerbee.daintree.DainTreeDumper.close
killerbee.daintree.DainTreeReader.close
killerbee.dblog.DBLogger.close
killerbee.dblog.DBReader.close
killerbee.dev_apimote.APIMOTE.close
killerbee.dev_freakduino.FREAKDUINO.close
killerbee.dev_rzusbstick.RZUSBSTICK.close
killerbee.dev_telosb.TELOSB.close
killerbee.dev_wislab.WISLAB.close
killerbee.dev_zigduino.ZIGDUINO.close
killerbee.openear.gps.client.gpscommon.close
killerbee.pcapdump.PcapDumper.close
killerbee.pcapdump.PcapReader.close
killerbee.zbwardrive.db.ZBScanDB.close
killerbee.zbwardrive.gps.client.gpscommon.close" class="py-name" href="#" onclick="return doclink('link-6', 'close', 'link-6');">close</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L48"></a><tt class="py-lineno"> 48</tt>  <tt class="py-line">                <tt class="py-keyword">continue</tt> </tt>
<a name="L49"></a><tt class="py-lineno"> 49</tt>  <tt class="py-line">            <tt class="py-keyword">break</tt> </tt>
<a name="L50"></a><tt class="py-lineno"> 50</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">sock</tt><tt class="py-op">:</tt> </tt>
<a name="L51"></a><tt class="py-lineno"> 51</tt>  <tt class="py-line">            <tt class="py-keyword">raise</tt> <tt class="py-name">socket</tt><tt class="py-op">.</tt><tt class="py-name">error</tt><tt class="py-op">,</tt> <tt class="py-name">msg</tt> </tt>
</div><a name="L52"></a><tt class="py-lineno"> 52</tt>  <tt class="py-line"> </tt>
<a name="gpscommon.close"></a><div id="gpscommon.close-def"><a name="L53"></a><tt class="py-lineno"> 53</tt> <a class="py-toggle" href="#" id="gpscommon.close-toggle" onclick="return toggle('gpscommon.close');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="killerbee.openear.gps.client.gpscommon-class.html#close">close</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="gpscommon.close-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="gpscommon.close-expanded"><a name="L54"></a><tt class="py-lineno"> 54</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">sock</tt><tt class="py-op">:</tt> </tt>
<a name="L55"></a><tt class="py-lineno"> 55</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">sock</tt><tt class="py-op">.</tt><tt id="link-7" class="py-name"><a title="killerbee.KillerBee.close
killerbee.daintree.DainTreeDumper.close
killerbee.daintree.DainTreeReader.close
killerbee.dblog.DBLogger.close
killerbee.dblog.DBReader.close
killerbee.dev_apimote.APIMOTE.close
killerbee.dev_freakduino.FREAKDUINO.close
killerbee.dev_rzusbstick.RZUSBSTICK.close
killerbee.dev_telosb.TELOSB.close
killerbee.dev_wislab.WISLAB.close
killerbee.dev_zigduino.ZIGDUINO.close
killerbee.openear.gps.client.gpscommon.close
killerbee.pcapdump.PcapDumper.close
killerbee.pcapdump.PcapReader.close
killerbee.zbwardrive.db.ZBScanDB.close
killerbee.zbwardrive.gps.client.gpscommon.close" class="py-name" href="#" onclick="return doclink('link-7', 'close', 'link-6');">close</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L56"></a><tt class="py-lineno"> 56</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">sock</tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
</div><a name="L57"></a><tt class="py-lineno"> 57</tt>  <tt class="py-line"> </tt>
<a name="gpscommon.__del__"></a><div id="gpscommon.__del__-def"><a name="L58"></a><tt class="py-lineno"> 58</tt> <a class="py-toggle" href="#" id="gpscommon.__del__-toggle" onclick="return toggle('gpscommon.__del__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="killerbee.openear.gps.client.gpscommon-class.html#__del__">__del__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="gpscommon.__del__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="gpscommon.__del__-expanded"><a name="L59"></a><tt class="py-lineno"> 59</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-8" class="py-name"><a title="killerbee.KillerBee.close
killerbee.daintree.DainTreeDumper.close
killerbee.daintree.DainTreeReader.close
killerbee.dblog.DBLogger.close
killerbee.dblog.DBReader.close
killerbee.dev_apimote.APIMOTE.close
killerbee.dev_freakduino.FREAKDUINO.close
killerbee.dev_rzusbstick.RZUSBSTICK.close
killerbee.dev_telosb.TELOSB.close
killerbee.dev_wislab.WISLAB.close
killerbee.dev_zigduino.ZIGDUINO.close
killerbee.openear.gps.client.gpscommon.close
killerbee.pcapdump.PcapDumper.close
killerbee.pcapdump.PcapReader.close
killerbee.zbwardrive.db.ZBScanDB.close
killerbee.zbwardrive.gps.client.gpscommon.close" class="py-name" href="#" onclick="return doclink('link-8', 'close', 'link-6');">close</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L60"></a><tt class="py-lineno"> 60</tt>  <tt class="py-line"> </tt>
<a name="gpscommon.waiting"></a><div id="gpscommon.waiting-def"><a name="L61"></a><tt class="py-lineno"> 61</tt> <a class="py-toggle" href="#" id="gpscommon.waiting-toggle" onclick="return toggle('gpscommon.waiting');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="killerbee.openear.gps.client.gpscommon-class.html#waiting">waiting</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="gpscommon.waiting-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="gpscommon.waiting-expanded"><a name="L62"></a><tt class="py-lineno"> 62</tt>  <tt class="py-line">        <tt class="py-docstring">"Return True if data is ready for the client."</tt> </tt>
<a name="L63"></a><tt class="py-lineno"> 63</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">linebuffer</tt><tt class="py-op">:</tt> </tt>
<a name="L64"></a><tt class="py-lineno"> 64</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> <tt class="py-name">True</tt> </tt>
<a name="L65"></a><tt class="py-lineno"> 65</tt>  <tt class="py-line">        <tt class="py-op">(</tt><tt class="py-name">winput</tt><tt class="py-op">,</tt> <tt class="py-name">woutput</tt><tt class="py-op">,</tt> <tt class="py-name">wexceptions</tt><tt class="py-op">)</tt> <tt class="py-op">=</tt> <tt class="py-name">select</tt><tt class="py-op">.</tt><tt class="py-name">select</tt><tt class="py-op">(</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">sock</tt><tt class="py-op">,</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt class="py-number">0</tt><tt class="py-op">)</tt> </tt>
<a name="L66"></a><tt class="py-lineno"> 66</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">winput</tt> <tt class="py-op">!=</tt> <tt class="py-op">[</tt><tt class="py-op">]</tt> </tt>
</div><a name="L67"></a><tt class="py-lineno"> 67</tt>  <tt class="py-line"> </tt>
<a name="gpscommon.read"></a><div id="gpscommon.read-def"><a name="L68"></a><tt class="py-lineno"> 68</tt> <a class="py-toggle" href="#" id="gpscommon.read-toggle" onclick="return toggle('gpscommon.read');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="killerbee.openear.gps.client.gpscommon-class.html#read">read</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="gpscommon.read-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="gpscommon.read-expanded"><a name="L69"></a><tt class="py-lineno"> 69</tt>  <tt class="py-line">        <tt class="py-docstring">"Wait for and read data being streamed from the daemon."</tt> </tt>
<a name="L70"></a><tt class="py-lineno"> 70</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-9" class="py-name"><a title="killerbee.GoodFET.GoodFET.verbose
killerbee.GoodFETatmel128.GoodFETatmel128rfa1.verbose" class="py-name" href="#" onclick="return doclink('link-9', 'verbose', 'link-2');">verbose</a></tt> <tt class="py-op">&gt;</tt> <tt class="py-number">1</tt><tt class="py-op">:</tt> </tt>
<a name="L71"></a><tt class="py-lineno"> 71</tt>  <tt class="py-line">            <tt class="py-name">sys</tt><tt class="py-op">.</tt><tt class="py-name">stderr</tt><tt class="py-op">.</tt><tt id="link-10" class="py-name" targets="Method killerbee.GoodFET.GoodFETbtser.write()=killerbee.GoodFET.GoodFETbtser-class.html#write"><a title="killerbee.GoodFET.GoodFETbtser.write" class="py-name" href="#" onclick="return doclink('link-10', 'write', 'link-10');">write</a></tt><tt class="py-op">(</tt><tt class="py-string">"poll: reading from daemon...\n"</tt><tt class="py-op">)</tt> </tt>
<a name="L72"></a><tt class="py-lineno"> 72</tt>  <tt class="py-line">        <tt class="py-name">eol</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">linebuffer</tt><tt class="py-op">.</tt><tt class="py-name">find</tt><tt class="py-op">(</tt><tt class="py-string">'\n'</tt><tt class="py-op">)</tt> </tt>
<a name="L73"></a><tt class="py-lineno"> 73</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">eol</tt> <tt class="py-op">==</tt> <tt class="py-op">-</tt><tt class="py-number">1</tt><tt class="py-op">:</tt> </tt>
<a name="L74"></a><tt class="py-lineno"> 74</tt>  <tt class="py-line">            <tt class="py-name">frag</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">sock</tt><tt class="py-op">.</tt><tt class="py-name">recv</tt><tt class="py-op">(</tt><tt class="py-number">4096</tt><tt class="py-op">)</tt> </tt>
<a name="L75"></a><tt class="py-lineno"> 75</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">linebuffer</tt> <tt class="py-op">+=</tt> <tt class="py-name">frag</tt> </tt>
<a name="L76"></a><tt class="py-lineno"> 76</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-11" class="py-name"><a title="killerbee.GoodFET.GoodFET.verbose
killerbee.GoodFETatmel128.GoodFETatmel128rfa1.verbose" class="py-name" href="#" onclick="return doclink('link-11', 'verbose', 'link-2');">verbose</a></tt> <tt class="py-op">&gt;</tt> <tt class="py-number">1</tt><tt class="py-op">:</tt> </tt>
<a name="L77"></a><tt class="py-lineno"> 77</tt>  <tt class="py-line">                <tt class="py-name">sys</tt><tt class="py-op">.</tt><tt class="py-name">stderr</tt><tt class="py-op">.</tt><tt id="link-12" class="py-name"><a title="killerbee.GoodFET.GoodFETbtser.write" class="py-name" href="#" onclick="return doclink('link-12', 'write', 'link-10');">write</a></tt><tt class="py-op">(</tt><tt class="py-string">"poll: read complete.\n"</tt><tt class="py-op">)</tt> </tt>
<a name="L78"></a><tt class="py-lineno"> 78</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">linebuffer</tt><tt class="py-op">:</tt> </tt>
<a name="L79"></a><tt class="py-lineno"> 79</tt>  <tt class="py-line">                <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-13" class="py-name"><a title="killerbee.GoodFET.GoodFET.verbose
killerbee.GoodFETatmel128.GoodFETatmel128rfa1.verbose" class="py-name" href="#" onclick="return doclink('link-13', 'verbose', 'link-2');">verbose</a></tt> <tt class="py-op">&gt;</tt> <tt class="py-number">1</tt><tt class="py-op">:</tt> </tt>
<a name="L80"></a><tt class="py-lineno"> 80</tt>  <tt class="py-line">                    <tt class="py-name">sys</tt><tt class="py-op">.</tt><tt class="py-name">stderr</tt><tt class="py-op">.</tt><tt id="link-14" class="py-name"><a title="killerbee.GoodFET.GoodFETbtser.write" class="py-name" href="#" onclick="return doclink('link-14', 'write', 'link-10');">write</a></tt><tt class="py-op">(</tt><tt class="py-string">"poll: returning -1.\n"</tt><tt class="py-op">)</tt> </tt>
<a name="L81"></a><tt class="py-lineno"> 81</tt>  <tt class="py-line">                <tt class="py-comment"># Read failed</tt> </tt>
<a name="L82"></a><tt class="py-lineno"> 82</tt>  <tt class="py-line">                <tt class="py-keyword">return</tt> <tt class="py-op">-</tt><tt class="py-number">1</tt> </tt>
<a name="L83"></a><tt class="py-lineno"> 83</tt>  <tt class="py-line">            <tt class="py-name">eol</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">linebuffer</tt><tt class="py-op">.</tt><tt class="py-name">find</tt><tt class="py-op">(</tt><tt class="py-string">'\n'</tt><tt class="py-op">)</tt> </tt>
<a name="L84"></a><tt class="py-lineno"> 84</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">eol</tt> <tt class="py-op">==</tt> <tt class="py-op">-</tt><tt class="py-number">1</tt><tt class="py-op">:</tt> </tt>
<a name="L85"></a><tt class="py-lineno"> 85</tt>  <tt class="py-line">                <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-15" class="py-name"><a title="killerbee.GoodFET.GoodFET.verbose
killerbee.GoodFETatmel128.GoodFETatmel128rfa1.verbose" class="py-name" href="#" onclick="return doclink('link-15', 'verbose', 'link-2');">verbose</a></tt> <tt class="py-op">&gt;</tt> <tt class="py-number">1</tt><tt class="py-op">:</tt> </tt>
<a name="L86"></a><tt class="py-lineno"> 86</tt>  <tt class="py-line">                    <tt class="py-name">sys</tt><tt class="py-op">.</tt><tt class="py-name">stderr</tt><tt class="py-op">.</tt><tt id="link-16" class="py-name"><a title="killerbee.GoodFET.GoodFETbtser.write" class="py-name" href="#" onclick="return doclink('link-16', 'write', 'link-10');">write</a></tt><tt class="py-op">(</tt><tt class="py-string">"poll: returning 0.\n"</tt><tt class="py-op">)</tt> </tt>
<a name="L87"></a><tt class="py-lineno"> 87</tt>  <tt class="py-line">                <tt class="py-comment"># Read succeeded, but only got a fragment</tt> </tt>
<a name="L88"></a><tt class="py-lineno"> 88</tt>  <tt class="py-line">                <tt class="py-keyword">return</tt> <tt class="py-number">0</tt> </tt>
<a name="L89"></a><tt class="py-lineno"> 89</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L90"></a><tt class="py-lineno"> 90</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-17" class="py-name"><a title="killerbee.GoodFET.GoodFET.verbose
killerbee.GoodFETatmel128.GoodFETatmel128rfa1.verbose" class="py-name" href="#" onclick="return doclink('link-17', 'verbose', 'link-2');">verbose</a></tt> <tt class="py-op">&gt;</tt> <tt class="py-number">1</tt><tt class="py-op">:</tt> </tt>
<a name="L91"></a><tt class="py-lineno"> 91</tt>  <tt class="py-line">                <tt class="py-name">sys</tt><tt class="py-op">.</tt><tt class="py-name">stderr</tt><tt class="py-op">.</tt><tt id="link-18" class="py-name"><a title="killerbee.GoodFET.GoodFETbtser.write" class="py-name" href="#" onclick="return doclink('link-18', 'write', 'link-10');">write</a></tt><tt class="py-op">(</tt><tt class="py-string">"poll: fetching from buffer.\n"</tt><tt class="py-op">)</tt> </tt>
<a name="L92"></a><tt class="py-lineno"> 92</tt>  <tt class="py-line"> </tt>
<a name="L93"></a><tt class="py-lineno"> 93</tt>  <tt class="py-line">        <tt class="py-comment"># We got a line</tt> </tt>
<a name="L94"></a><tt class="py-lineno"> 94</tt>  <tt class="py-line">        <tt class="py-name">eol</tt> <tt class="py-op">+=</tt> <tt class="py-number">1</tt> </tt>
<a name="L95"></a><tt class="py-lineno"> 95</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">response</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">linebuffer</tt><tt class="py-op">[</tt><tt class="py-op">:</tt><tt class="py-name">eol</tt><tt class="py-op">]</tt> </tt>
<a name="L96"></a><tt class="py-lineno"> 96</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">linebuffer</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">linebuffer</tt><tt class="py-op">[</tt><tt class="py-name">eol</tt><tt class="py-op">:</tt><tt class="py-op">]</tt> </tt>
<a name="L97"></a><tt class="py-lineno"> 97</tt>  <tt class="py-line"> </tt>
<a name="L98"></a><tt class="py-lineno"> 98</tt>  <tt class="py-line">        <tt class="py-comment"># Can happen if daemon terminates while we're reading.</tt> </tt>
<a name="L99"></a><tt class="py-lineno"> 99</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">response</tt><tt class="py-op">:</tt> </tt>
<a name="L100"></a><tt class="py-lineno">100</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> <tt class="py-op">-</tt><tt class="py-number">1</tt> </tt>
<a name="L101"></a><tt class="py-lineno">101</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-19" class="py-name"><a title="killerbee.GoodFET.GoodFET.verbose
killerbee.GoodFETatmel128.GoodFETatmel128rfa1.verbose" class="py-name" href="#" onclick="return doclink('link-19', 'verbose', 'link-2');">verbose</a></tt><tt class="py-op">:</tt> </tt>
<a name="L102"></a><tt class="py-lineno">102</tt>  <tt class="py-line">            <tt class="py-name">sys</tt><tt class="py-op">.</tt><tt class="py-name">stderr</tt><tt class="py-op">.</tt><tt id="link-20" class="py-name"><a title="killerbee.GoodFET.GoodFETbtser.write" class="py-name" href="#" onclick="return doclink('link-20', 'write', 'link-10');">write</a></tt><tt class="py-op">(</tt><tt class="py-string">"poll: data is %s\n"</tt> <tt class="py-op">%</tt> <tt class="py-name">repr</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">response</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L103"></a><tt class="py-lineno">103</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">received</tt> <tt class="py-op">=</tt> <tt class="py-name">time</tt><tt class="py-op">.</tt><tt class="py-name">time</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L104"></a><tt class="py-lineno">104</tt>  <tt class="py-line">        <tt class="py-comment"># We got a \n-terminated line</tt> </tt>
<a name="L105"></a><tt class="py-lineno">105</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">response</tt><tt class="py-op">)</tt> </tt>
</div><a name="L106"></a><tt class="py-lineno">106</tt>  <tt class="py-line"> </tt>
<a name="gpscommon.send"></a><div id="gpscommon.send-def"><a name="L107"></a><tt class="py-lineno">107</tt> <a class="py-toggle" href="#" id="gpscommon.send-toggle" onclick="return toggle('gpscommon.send');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="killerbee.openear.gps.client.gpscommon-class.html#send">send</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">commands</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="gpscommon.send-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="gpscommon.send-expanded"><a name="L108"></a><tt class="py-lineno">108</tt>  <tt class="py-line">        <tt class="py-docstring">"Ship commands to the daemon."</tt> </tt>
<a name="L109"></a><tt class="py-lineno">109</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt class="py-name">commands</tt><tt class="py-op">.</tt><tt class="py-name">endswith</tt><tt class="py-op">(</tt><tt class="py-string">"\n"</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L110"></a><tt class="py-lineno">110</tt>  <tt class="py-line">            <tt class="py-name">commands</tt> <tt class="py-op">+=</tt> <tt class="py-string">"\n"</tt> </tt>
<a name="L111"></a><tt class="py-lineno">111</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">sock</tt><tt class="py-op">.</tt><tt id="link-21" class="py-name" targets="Method killerbee.openear.gps.client.gpscommon.send()=killerbee.openear.gps.client.gpscommon-class.html#send,Method killerbee.zbwardrive.gps.client.gpscommon.send()=killerbee.zbwardrive.gps.client.gpscommon-class.html#send"><a title="killerbee.openear.gps.client.gpscommon.send
killerbee.zbwardrive.gps.client.gpscommon.send" class="py-name" href="#" onclick="return doclink('link-21', 'send', 'link-21');">send</a></tt><tt class="py-op">(</tt><tt class="py-name">commands</tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L112"></a><tt class="py-lineno">112</tt>  <tt class="py-line"> </tt>
<a name="L113"></a><tt class="py-lineno">113</tt>  <tt class="py-line"><tt id="link-22" class="py-name" targets="Variable killerbee.openear.gps.WATCH_DISABLE=killerbee.openear.gps-module.html#WATCH_DISABLE,Variable killerbee.openear.gps.client.WATCH_DISABLE=killerbee.openear.gps.client-module.html#WATCH_DISABLE,Variable killerbee.openear.gps.gps'.WATCH_DISABLE=killerbee.openear.gps.gps%27-module.html#WATCH_DISABLE,Variable killerbee.zbwardrive.gps.WATCH_DISABLE=killerbee.zbwardrive.gps-module.html#WATCH_DISABLE,Variable killerbee.zbwardrive.gps.client.WATCH_DISABLE=killerbee.zbwardrive.gps.client-module.html#WATCH_DISABLE,Variable killerbee.zbwardrive.gps.gps'.WATCH_DISABLE=killerbee.zbwardrive.gps.gps%27-module.html#WATCH_DISABLE"><a title="killerbee.openear.gps.WATCH_DISABLE
killerbee.openear.gps.client.WATCH_DISABLE
killerbee.openear.gps.gps'.WATCH_DISABLE
killerbee.zbwardrive.gps.WATCH_DISABLE
killerbee.zbwardrive.gps.client.WATCH_DISABLE
killerbee.zbwardrive.gps.gps'.WATCH_DISABLE" class="py-name" href="#" onclick="return doclink('link-22', 'WATCH_DISABLE', 'link-22');">WATCH_DISABLE</a></tt>   <tt class="py-op">=</tt> <tt class="py-number">0x0000</tt> </tt>
<a name="L114"></a><tt class="py-lineno">114</tt>  <tt class="py-line"><tt id="link-23" class="py-name" targets="Variable killerbee.openear.gps.WATCH_ENABLE=killerbee.openear.gps-module.html#WATCH_ENABLE,Variable killerbee.openear.gps.client.WATCH_ENABLE=killerbee.openear.gps.client-module.html#WATCH_ENABLE,Variable killerbee.openear.gps.gps'.WATCH_ENABLE=killerbee.openear.gps.gps%27-module.html#WATCH_ENABLE,Variable killerbee.zbwardrive.gps.WATCH_ENABLE=killerbee.zbwardrive.gps-module.html#WATCH_ENABLE,Variable killerbee.zbwardrive.gps.client.WATCH_ENABLE=killerbee.zbwardrive.gps.client-module.html#WATCH_ENABLE,Variable killerbee.zbwardrive.gps.gps'.WATCH_ENABLE=killerbee.zbwardrive.gps.gps%27-module.html#WATCH_ENABLE"><a title="killerbee.openear.gps.WATCH_ENABLE
killerbee.openear.gps.client.WATCH_ENABLE
killerbee.openear.gps.gps'.WATCH_ENABLE
killerbee.zbwardrive.gps.WATCH_ENABLE
killerbee.zbwardrive.gps.client.WATCH_ENABLE
killerbee.zbwardrive.gps.gps'.WATCH_ENABLE" class="py-name" href="#" onclick="return doclink('link-23', 'WATCH_ENABLE', 'link-23');">WATCH_ENABLE</a></tt>    <tt class="py-op">=</tt> <tt class="py-number">0x0001</tt> </tt>
<a name="L115"></a><tt class="py-lineno">115</tt>  <tt class="py-line"><tt id="link-24" class="py-name" targets="Variable killerbee.openear.gps.WATCH_JSON=killerbee.openear.gps-module.html#WATCH_JSON,Variable killerbee.openear.gps.client.WATCH_JSON=killerbee.openear.gps.client-module.html#WATCH_JSON,Variable killerbee.openear.gps.gps'.WATCH_JSON=killerbee.openear.gps.gps%27-module.html#WATCH_JSON,Variable killerbee.zbwardrive.gps.WATCH_JSON=killerbee.zbwardrive.gps-module.html#WATCH_JSON,Variable killerbee.zbwardrive.gps.client.WATCH_JSON=killerbee.zbwardrive.gps.client-module.html#WATCH_JSON,Variable killerbee.zbwardrive.gps.gps'.WATCH_JSON=killerbee.zbwardrive.gps.gps%27-module.html#WATCH_JSON"><a title="killerbee.openear.gps.WATCH_JSON
killerbee.openear.gps.client.WATCH_JSON
killerbee.openear.gps.gps'.WATCH_JSON
killerbee.zbwardrive.gps.WATCH_JSON
killerbee.zbwardrive.gps.client.WATCH_JSON
killerbee.zbwardrive.gps.gps'.WATCH_JSON" class="py-name" href="#" onclick="return doclink('link-24', 'WATCH_JSON', 'link-24');">WATCH_JSON</a></tt>      <tt class="py-op">=</tt> <tt class="py-number">0x0002</tt> </tt>
<a name="L116"></a><tt class="py-lineno">116</tt>  <tt class="py-line"><tt id="link-25" class="py-name" targets="Variable killerbee.openear.gps.WATCH_NMEA=killerbee.openear.gps-module.html#WATCH_NMEA,Variable killerbee.openear.gps.client.WATCH_NMEA=killerbee.openear.gps.client-module.html#WATCH_NMEA,Variable killerbee.openear.gps.gps'.WATCH_NMEA=killerbee.openear.gps.gps%27-module.html#WATCH_NMEA,Variable killerbee.zbwardrive.gps.WATCH_NMEA=killerbee.zbwardrive.gps-module.html#WATCH_NMEA,Variable killerbee.zbwardrive.gps.client.WATCH_NMEA=killerbee.zbwardrive.gps.client-module.html#WATCH_NMEA,Variable killerbee.zbwardrive.gps.gps'.WATCH_NMEA=killerbee.zbwardrive.gps.gps%27-module.html#WATCH_NMEA"><a title="killerbee.openear.gps.WATCH_NMEA
killerbee.openear.gps.client.WATCH_NMEA
killerbee.openear.gps.gps'.WATCH_NMEA
killerbee.zbwardrive.gps.WATCH_NMEA
killerbee.zbwardrive.gps.client.WATCH_NMEA
killerbee.zbwardrive.gps.gps'.WATCH_NMEA" class="py-name" href="#" onclick="return doclink('link-25', 'WATCH_NMEA', 'link-25');">WATCH_NMEA</a></tt>      <tt class="py-op">=</tt> <tt class="py-number">0x0004</tt> </tt>
<a name="L117"></a><tt class="py-lineno">117</tt>  <tt class="py-line"><tt id="link-26" class="py-name" targets="Variable killerbee.openear.gps.WATCH_RARE=killerbee.openear.gps-module.html#WATCH_RARE,Variable killerbee.openear.gps.client.WATCH_RARE=killerbee.openear.gps.client-module.html#WATCH_RARE,Variable killerbee.openear.gps.gps'.WATCH_RARE=killerbee.openear.gps.gps%27-module.html#WATCH_RARE,Variable killerbee.zbwardrive.gps.WATCH_RARE=killerbee.zbwardrive.gps-module.html#WATCH_RARE,Variable killerbee.zbwardrive.gps.client.WATCH_RARE=killerbee.zbwardrive.gps.client-module.html#WATCH_RARE,Variable killerbee.zbwardrive.gps.gps'.WATCH_RARE=killerbee.zbwardrive.gps.gps%27-module.html#WATCH_RARE"><a title="killerbee.openear.gps.WATCH_RARE
killerbee.openear.gps.client.WATCH_RARE
killerbee.openear.gps.gps'.WATCH_RARE
killerbee.zbwardrive.gps.WATCH_RARE
killerbee.zbwardrive.gps.client.WATCH_RARE
killerbee.zbwardrive.gps.gps'.WATCH_RARE" class="py-name" href="#" onclick="return doclink('link-26', 'WATCH_RARE', 'link-26');">WATCH_RARE</a></tt>      <tt class="py-op">=</tt> <tt class="py-number">0x0008</tt> </tt>
<a name="L118"></a><tt class="py-lineno">118</tt>  <tt class="py-line"><tt id="link-27" class="py-name" targets="Variable killerbee.openear.gps.WATCH_RAW=killerbee.openear.gps-module.html#WATCH_RAW,Variable killerbee.openear.gps.client.WATCH_RAW=killerbee.openear.gps.client-module.html#WATCH_RAW,Variable killerbee.openear.gps.gps'.WATCH_RAW=killerbee.openear.gps.gps%27-module.html#WATCH_RAW,Variable killerbee.zbwardrive.gps.WATCH_RAW=killerbee.zbwardrive.gps-module.html#WATCH_RAW,Variable killerbee.zbwardrive.gps.client.WATCH_RAW=killerbee.zbwardrive.gps.client-module.html#WATCH_RAW,Variable killerbee.zbwardrive.gps.gps'.WATCH_RAW=killerbee.zbwardrive.gps.gps%27-module.html#WATCH_RAW"><a title="killerbee.openear.gps.WATCH_RAW
killerbee.openear.gps.client.WATCH_RAW
killerbee.openear.gps.gps'.WATCH_RAW
killerbee.zbwardrive.gps.WATCH_RAW
killerbee.zbwardrive.gps.client.WATCH_RAW
killerbee.zbwardrive.gps.gps'.WATCH_RAW" class="py-name" href="#" onclick="return doclink('link-27', 'WATCH_RAW', 'link-27');">WATCH_RAW</a></tt>       <tt class="py-op">=</tt> <tt class="py-number">0x0010</tt> </tt>
<a name="L119"></a><tt class="py-lineno">119</tt>  <tt class="py-line"><tt id="link-28" class="py-name" targets="Variable killerbee.openear.gps.WATCH_SCALED=killerbee.openear.gps-module.html#WATCH_SCALED,Variable killerbee.openear.gps.client.WATCH_SCALED=killerbee.openear.gps.client-module.html#WATCH_SCALED,Variable killerbee.openear.gps.gps'.WATCH_SCALED=killerbee.openear.gps.gps%27-module.html#WATCH_SCALED,Variable killerbee.zbwardrive.gps.WATCH_SCALED=killerbee.zbwardrive.gps-module.html#WATCH_SCALED,Variable killerbee.zbwardrive.gps.client.WATCH_SCALED=killerbee.zbwardrive.gps.client-module.html#WATCH_SCALED,Variable killerbee.zbwardrive.gps.gps'.WATCH_SCALED=killerbee.zbwardrive.gps.gps%27-module.html#WATCH_SCALED"><a title="killerbee.openear.gps.WATCH_SCALED
killerbee.openear.gps.client.WATCH_SCALED
killerbee.openear.gps.gps'.WATCH_SCALED
killerbee.zbwardrive.gps.WATCH_SCALED
killerbee.zbwardrive.gps.client.WATCH_SCALED
killerbee.zbwardrive.gps.gps'.WATCH_SCALED" class="py-name" href="#" onclick="return doclink('link-28', 'WATCH_SCALED', 'link-28');">WATCH_SCALED</a></tt>    <tt class="py-op">=</tt> <tt class="py-number">0x0020</tt> </tt>
<a name="L120"></a><tt class="py-lineno">120</tt>  <tt class="py-line"><tt id="link-29" class="py-name" targets="Variable killerbee.openear.gps.WATCH_DEVICE=killerbee.openear.gps-module.html#WATCH_DEVICE,Variable killerbee.openear.gps.client.WATCH_DEVICE=killerbee.openear.gps.client-module.html#WATCH_DEVICE,Variable killerbee.openear.gps.gps'.WATCH_DEVICE=killerbee.openear.gps.gps%27-module.html#WATCH_DEVICE,Variable killerbee.zbwardrive.gps.WATCH_DEVICE=killerbee.zbwardrive.gps-module.html#WATCH_DEVICE,Variable killerbee.zbwardrive.gps.client.WATCH_DEVICE=killerbee.zbwardrive.gps.client-module.html#WATCH_DEVICE,Variable killerbee.zbwardrive.gps.gps'.WATCH_DEVICE=killerbee.zbwardrive.gps.gps%27-module.html#WATCH_DEVICE"><a title="killerbee.openear.gps.WATCH_DEVICE
killerbee.openear.gps.client.WATCH_DEVICE
killerbee.openear.gps.gps'.WATCH_DEVICE
killerbee.zbwardrive.gps.WATCH_DEVICE
killerbee.zbwardrive.gps.client.WATCH_DEVICE
killerbee.zbwardrive.gps.gps'.WATCH_DEVICE" class="py-name" href="#" onclick="return doclink('link-29', 'WATCH_DEVICE', 'link-29');">WATCH_DEVICE</a></tt>    <tt class="py-op">=</tt> <tt class="py-number">0x0040</tt> </tt>
<a name="L121"></a><tt class="py-lineno">121</tt>  <tt class="py-line"> </tt>
<a name="gpsjson"></a><div id="gpsjson-def"><a name="L122"></a><tt class="py-lineno">122</tt> <a class="py-toggle" href="#" id="gpsjson-toggle" onclick="return toggle('gpsjson');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="killerbee.openear.gps.client.gpsjson-class.html">gpsjson</a><tt class="py-op">(</tt><tt class="py-base-class">gpscommon</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="gpsjson-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="gpsjson-expanded"><a name="L123"></a><tt class="py-lineno">123</tt>  <tt class="py-line">    <tt class="py-docstring">"Basic JSON decoding."</tt> </tt>
<a name="gpsjson.__iter__"></a><div id="gpsjson.__iter__-def"><a name="L124"></a><tt class="py-lineno">124</tt> <a class="py-toggle" href="#" id="gpsjson.__iter__-toggle" onclick="return toggle('gpsjson.__iter__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="killerbee.openear.gps.client.gpsjson-class.html#__iter__">__iter__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="gpsjson.__iter__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="gpsjson.__iter__-expanded"><a name="L125"></a><tt class="py-lineno">125</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt> </tt>
</div><a name="L126"></a><tt class="py-lineno">126</tt>  <tt class="py-line"> </tt>
<a name="gpsjson.json_unpack"></a><div id="gpsjson.json_unpack-def"><a name="L127"></a><tt class="py-lineno">127</tt> <a class="py-toggle" href="#" id="gpsjson.json_unpack-toggle" onclick="return toggle('gpsjson.json_unpack');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="killerbee.openear.gps.client.gpsjson-class.html#json_unpack">json_unpack</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">buf</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="gpsjson.json_unpack-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="gpsjson.json_unpack-expanded"><a name="L128"></a><tt class="py-lineno">128</tt>  <tt class="py-line">        <tt class="py-keyword">def</tt> <tt class="py-def-name">asciify</tt><tt class="py-op">(</tt><tt class="py-param">d</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L129"></a><tt class="py-lineno">129</tt>  <tt class="py-line">            <tt class="py-docstring">"De-Unicodify everything so we can copy dicts into Python objects."</tt> </tt>
<a name="L130"></a><tt class="py-lineno">130</tt>  <tt class="py-line">            <tt class="py-name">t</tt> <tt class="py-op">=</tt> <tt class="py-op">{</tt><tt class="py-op">}</tt> </tt>
<a name="L131"></a><tt class="py-lineno">131</tt>  <tt class="py-line">            <tt class="py-keyword">for</tt> <tt class="py-op">(</tt><tt class="py-name">k</tt><tt class="py-op">,</tt> <tt class="py-name">v</tt><tt class="py-op">)</tt> <tt class="py-keyword">in</tt> <tt class="py-name">d</tt><tt class="py-op">.</tt><tt class="py-name">items</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L132"></a><tt class="py-lineno">132</tt>  <tt class="py-line">                <tt class="py-name">ka</tt> <tt class="py-op">=</tt> <tt class="py-name">k</tt><tt class="py-op">.</tt><tt class="py-name">encode</tt><tt class="py-op">(</tt><tt class="py-string">"ascii"</tt><tt class="py-op">)</tt> </tt>
<a name="L133"></a><tt class="py-lineno">133</tt>  <tt class="py-line">                <tt class="py-keyword">if</tt> <tt class="py-name">type</tt><tt class="py-op">(</tt><tt class="py-name">v</tt><tt class="py-op">)</tt> <tt class="py-op">==</tt> <tt class="py-name">type</tt><tt class="py-op">(</tt><tt class="py-string">u"x"</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L134"></a><tt class="py-lineno">134</tt>  <tt class="py-line">                    <tt class="py-name">va</tt> <tt class="py-op">=</tt> <tt class="py-name">v</tt><tt class="py-op">.</tt><tt class="py-name">encode</tt><tt class="py-op">(</tt><tt class="py-string">"ascii"</tt><tt class="py-op">)</tt> </tt>
<a name="L135"></a><tt class="py-lineno">135</tt>  <tt class="py-line">                <tt class="py-keyword">elif</tt> <tt class="py-name">type</tt><tt class="py-op">(</tt><tt class="py-name">v</tt><tt class="py-op">)</tt> <tt class="py-op">==</tt> <tt class="py-name">type</tt><tt class="py-op">(</tt><tt class="py-op">{</tt><tt class="py-op">}</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L136"></a><tt class="py-lineno">136</tt>  <tt class="py-line">                    <tt class="py-name">va</tt> <tt class="py-op">=</tt> <tt class="py-name">asciify</tt><tt class="py-op">(</tt><tt class="py-name">v</tt><tt class="py-op">)</tt> </tt>
<a name="L137"></a><tt class="py-lineno">137</tt>  <tt class="py-line">                <tt class="py-keyword">elif</tt> <tt class="py-name">type</tt><tt class="py-op">(</tt><tt class="py-name">v</tt><tt class="py-op">)</tt> <tt class="py-op">==</tt> <tt class="py-name">type</tt><tt class="py-op">(</tt><tt class="py-op">[</tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L138"></a><tt class="py-lineno">138</tt>  <tt class="py-line">                    <tt class="py-name">va</tt> <tt class="py-op">=</tt> <tt class="py-name">map</tt><tt class="py-op">(</tt><tt class="py-name">asciify</tt><tt class="py-op">,</tt> <tt class="py-name">v</tt><tt class="py-op">)</tt> </tt>
<a name="L139"></a><tt class="py-lineno">139</tt>  <tt class="py-line">                <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L140"></a><tt class="py-lineno">140</tt>  <tt class="py-line">                    <tt class="py-name">va</tt> <tt class="py-op">=</tt> <tt class="py-name">v</tt> </tt>
<a name="L141"></a><tt class="py-lineno">141</tt>  <tt class="py-line">                <tt class="py-name">t</tt><tt class="py-op">[</tt><tt class="py-name">ka</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">va</tt> </tt>
<a name="L142"></a><tt class="py-lineno">142</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> <tt class="py-name">t</tt> </tt>
</div><a name="L143"></a><tt class="py-lineno">143</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-30" class="py-name" targets="Variable killerbee.GoodFET.GoodFET.data=killerbee.GoodFET.GoodFET-class.html#data"><a title="killerbee.GoodFET.GoodFET.data" class="py-name" href="#" onclick="return doclink('link-30', 'data', 'link-30');">data</a></tt> <tt class="py-op">=</tt> <tt id="link-31" class="py-name" targets="Class killerbee.openear.gps.client.dictwrapper=killerbee.openear.gps.client.dictwrapper-class.html,Class killerbee.zbwardrive.gps.client.dictwrapper=killerbee.zbwardrive.gps.client.dictwrapper-class.html"><a title="killerbee.openear.gps.client.dictwrapper
killerbee.zbwardrive.gps.client.dictwrapper" class="py-name" href="#" onclick="return doclink('link-31', 'dictwrapper', 'link-31');">dictwrapper</a></tt><tt class="py-op">(</tt><tt class="py-op">**</tt><tt class="py-name">asciify</tt><tt class="py-op">(</tt><tt class="py-name">json</tt><tt class="py-op">.</tt><tt class="py-name">loads</tt><tt class="py-op">(</tt><tt class="py-name">buf</tt><tt class="py-op">.</tt><tt class="py-name">strip</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt class="py-name">encoding</tt><tt class="py-op">=</tt><tt class="py-string">"ascii"</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L144"></a><tt class="py-lineno">144</tt>  <tt class="py-line">        <tt class="py-comment"># Should be done for any other array-valued subobjects, too.</tt> </tt>
<a name="L145"></a><tt class="py-lineno">145</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-32" class="py-name"><a title="killerbee.GoodFET.GoodFET.data" class="py-name" href="#" onclick="return doclink('link-32', 'data', 'link-30');">data</a></tt><tt class="py-op">[</tt><tt class="py-string">"class"</tt><tt class="py-op">]</tt> <tt class="py-op">==</tt> <tt class="py-string">"SKY"</tt> <tt class="py-keyword">and</tt> <tt class="py-name">hasattr</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-33" class="py-name"><a title="killerbee.GoodFET.GoodFET.data" class="py-name" href="#" onclick="return doclink('link-33', 'data', 'link-30');">data</a></tt><tt class="py-op">,</tt> <tt class="py-string">"satellites"</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L146"></a><tt class="py-lineno">146</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-34" class="py-name"><a title="killerbee.GoodFET.GoodFET.data" class="py-name" href="#" onclick="return doclink('link-34', 'data', 'link-30');">data</a></tt><tt class="py-op">.</tt><tt class="py-name">satellites</tt> <tt class="py-op">=</tt> <tt class="py-name">map</tt><tt class="py-op">(</tt><tt class="py-keyword">lambda</tt> <tt class="py-name">x</tt><tt class="py-op">:</tt> <tt id="link-35" class="py-name"><a title="killerbee.openear.gps.client.dictwrapper
killerbee.zbwardrive.gps.client.dictwrapper" class="py-name" href="#" onclick="return doclink('link-35', 'dictwrapper', 'link-31');">dictwrapper</a></tt><tt class="py-op">(</tt><tt class="py-op">**</tt><tt class="py-name">x</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-36" class="py-name"><a title="killerbee.GoodFET.GoodFET.data" class="py-name" href="#" onclick="return doclink('link-36', 'data', 'link-30');">data</a></tt><tt class="py-op">.</tt><tt class="py-name">satellites</tt><tt class="py-op">)</tt> </tt>
</div><a name="L147"></a><tt class="py-lineno">147</tt>  <tt class="py-line"> </tt>
<a name="gpsjson.stream"></a><div id="gpsjson.stream-def"><a name="L148"></a><tt class="py-lineno">148</tt> <a class="py-toggle" href="#" id="gpsjson.stream-toggle" onclick="return toggle('gpsjson.stream');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="killerbee.openear.gps.client.gpsjson-class.html#stream">stream</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">flags</tt><tt class="py-op">=</tt><tt class="py-number">0</tt><tt class="py-op">,</tt> <tt class="py-param">outfile</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="gpsjson.stream-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="gpsjson.stream-expanded"><a name="L149"></a><tt class="py-lineno">149</tt>  <tt class="py-line">        <tt class="py-docstring">"Control streaming reports from the daemon,"</tt> </tt>
<a name="L150"></a><tt class="py-lineno">150</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">flags</tt> <tt class="py-op">&amp;</tt> <tt id="link-37" class="py-name"><a title="killerbee.openear.gps.WATCH_DISABLE
killerbee.openear.gps.client.WATCH_DISABLE
killerbee.openear.gps.gps'.WATCH_DISABLE
killerbee.zbwardrive.gps.WATCH_DISABLE
killerbee.zbwardrive.gps.client.WATCH_DISABLE
killerbee.zbwardrive.gps.gps'.WATCH_DISABLE" class="py-name" href="#" onclick="return doclink('link-37', 'WATCH_DISABLE', 'link-22');">WATCH_DISABLE</a></tt><tt class="py-op">:</tt> </tt>
<a name="L151"></a><tt class="py-lineno">151</tt>  <tt class="py-line">            <tt class="py-name">arg</tt> <tt class="py-op">=</tt> <tt class="py-string">'?WATCH={"enable":false'</tt> </tt>
<a name="L152"></a><tt class="py-lineno">152</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">flags</tt> <tt class="py-op">&amp;</tt> <tt id="link-38" class="py-name"><a title="killerbee.openear.gps.WATCH_JSON
killerbee.openear.gps.client.WATCH_JSON
killerbee.openear.gps.gps'.WATCH_JSON
killerbee.zbwardrive.gps.WATCH_JSON
killerbee.zbwardrive.gps.client.WATCH_JSON
killerbee.zbwardrive.gps.gps'.WATCH_JSON" class="py-name" href="#" onclick="return doclink('link-38', 'WATCH_JSON', 'link-24');">WATCH_JSON</a></tt><tt class="py-op">:</tt> </tt>
<a name="L153"></a><tt class="py-lineno">153</tt>  <tt class="py-line">                <tt class="py-name">arg</tt> <tt class="py-op">+=</tt> <tt class="py-string">',"json":false'</tt> </tt>
<a name="L154"></a><tt class="py-lineno">154</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">flags</tt> <tt class="py-op">&amp;</tt> <tt id="link-39" class="py-name"><a title="killerbee.openear.gps.WATCH_NMEA
killerbee.openear.gps.client.WATCH_NMEA
killerbee.openear.gps.gps'.WATCH_NMEA
killerbee.zbwardrive.gps.WATCH_NMEA
killerbee.zbwardrive.gps.client.WATCH_NMEA
killerbee.zbwardrive.gps.gps'.WATCH_NMEA" class="py-name" href="#" onclick="return doclink('link-39', 'WATCH_NMEA', 'link-25');">WATCH_NMEA</a></tt><tt class="py-op">:</tt> </tt>
<a name="L155"></a><tt class="py-lineno">155</tt>  <tt class="py-line">                <tt class="py-name">arg</tt> <tt class="py-op">+=</tt> <tt class="py-string">',"nmea":false'</tt> </tt>
<a name="L156"></a><tt class="py-lineno">156</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">flags</tt> <tt class="py-op">&amp;</tt> <tt id="link-40" class="py-name"><a title="killerbee.openear.gps.WATCH_RARE
killerbee.openear.gps.client.WATCH_RARE
killerbee.openear.gps.gps'.WATCH_RARE
killerbee.zbwardrive.gps.WATCH_RARE
killerbee.zbwardrive.gps.client.WATCH_RARE
killerbee.zbwardrive.gps.gps'.WATCH_RARE" class="py-name" href="#" onclick="return doclink('link-40', 'WATCH_RARE', 'link-26');">WATCH_RARE</a></tt><tt class="py-op">:</tt> </tt>
<a name="L157"></a><tt class="py-lineno">157</tt>  <tt class="py-line">                <tt class="py-name">arg</tt> <tt class="py-op">+=</tt> <tt class="py-string">',"raw":1'</tt> </tt>
<a name="L158"></a><tt class="py-lineno">158</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">flags</tt> <tt class="py-op">&amp;</tt> <tt id="link-41" class="py-name"><a title="killerbee.openear.gps.WATCH_RAW
killerbee.openear.gps.client.WATCH_RAW
killerbee.openear.gps.gps'.WATCH_RAW
killerbee.zbwardrive.gps.WATCH_RAW
killerbee.zbwardrive.gps.client.WATCH_RAW
killerbee.zbwardrive.gps.gps'.WATCH_RAW" class="py-name" href="#" onclick="return doclink('link-41', 'WATCH_RAW', 'link-27');">WATCH_RAW</a></tt><tt class="py-op">:</tt> </tt>
<a name="L159"></a><tt class="py-lineno">159</tt>  <tt class="py-line">                <tt class="py-name">arg</tt> <tt class="py-op">+=</tt> <tt class="py-string">',"raw":2'</tt> </tt>
<a name="L160"></a><tt class="py-lineno">160</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">flags</tt> <tt class="py-op">&amp;</tt> <tt id="link-42" class="py-name"><a title="killerbee.openear.gps.WATCH_SCALED
killerbee.openear.gps.client.WATCH_SCALED
killerbee.openear.gps.gps'.WATCH_SCALED
killerbee.zbwardrive.gps.WATCH_SCALED
killerbee.zbwardrive.gps.client.WATCH_SCALED
killerbee.zbwardrive.gps.gps'.WATCH_SCALED" class="py-name" href="#" onclick="return doclink('link-42', 'WATCH_SCALED', 'link-28');">WATCH_SCALED</a></tt><tt class="py-op">:</tt> </tt>
<a name="L161"></a><tt class="py-lineno">161</tt>  <tt class="py-line">                <tt class="py-name">arg</tt> <tt class="py-op">+=</tt> <tt class="py-string">',"scaled":false'</tt> </tt>
<a name="L162"></a><tt class="py-lineno">162</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> <tt class="py-comment"># flags &amp; WATCH_ENABLE:</tt> </tt>
<a name="L163"></a><tt class="py-lineno">163</tt>  <tt class="py-line">            <tt class="py-name">arg</tt> <tt class="py-op">=</tt> <tt class="py-string">'?WATCH={"enable":true'</tt> </tt>
<a name="L164"></a><tt class="py-lineno">164</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">flags</tt> <tt class="py-op">&amp;</tt> <tt id="link-43" class="py-name"><a title="killerbee.openear.gps.WATCH_JSON
killerbee.openear.gps.client.WATCH_JSON
killerbee.openear.gps.gps'.WATCH_JSON
killerbee.zbwardrive.gps.WATCH_JSON
killerbee.zbwardrive.gps.client.WATCH_JSON
killerbee.zbwardrive.gps.gps'.WATCH_JSON" class="py-name" href="#" onclick="return doclink('link-43', 'WATCH_JSON', 'link-24');">WATCH_JSON</a></tt><tt class="py-op">:</tt> </tt>
<a name="L165"></a><tt class="py-lineno">165</tt>  <tt class="py-line">                <tt class="py-name">arg</tt> <tt class="py-op">+=</tt> <tt class="py-string">',"json":true'</tt> </tt>
<a name="L166"></a><tt class="py-lineno">166</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">flags</tt> <tt class="py-op">&amp;</tt> <tt id="link-44" class="py-name"><a title="killerbee.openear.gps.WATCH_NMEA
killerbee.openear.gps.client.WATCH_NMEA
killerbee.openear.gps.gps'.WATCH_NMEA
killerbee.zbwardrive.gps.WATCH_NMEA
killerbee.zbwardrive.gps.client.WATCH_NMEA
killerbee.zbwardrive.gps.gps'.WATCH_NMEA" class="py-name" href="#" onclick="return doclink('link-44', 'WATCH_NMEA', 'link-25');">WATCH_NMEA</a></tt><tt class="py-op">:</tt> </tt>
<a name="L167"></a><tt class="py-lineno">167</tt>  <tt class="py-line">                <tt class="py-name">arg</tt> <tt class="py-op">+=</tt> <tt class="py-string">',"nmea":true'</tt> </tt>
<a name="L168"></a><tt class="py-lineno">168</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">flags</tt> <tt class="py-op">&amp;</tt> <tt id="link-45" class="py-name"><a title="killerbee.openear.gps.WATCH_RAW
killerbee.openear.gps.client.WATCH_RAW
killerbee.openear.gps.gps'.WATCH_RAW
killerbee.zbwardrive.gps.WATCH_RAW
killerbee.zbwardrive.gps.client.WATCH_RAW
killerbee.zbwardrive.gps.gps'.WATCH_RAW" class="py-name" href="#" onclick="return doclink('link-45', 'WATCH_RAW', 'link-27');">WATCH_RAW</a></tt><tt class="py-op">:</tt> </tt>
<a name="L169"></a><tt class="py-lineno">169</tt>  <tt class="py-line">                <tt class="py-name">arg</tt> <tt class="py-op">+=</tt> <tt class="py-string">',"raw":1'</tt> </tt>
<a name="L170"></a><tt class="py-lineno">170</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">flags</tt> <tt class="py-op">&amp;</tt> <tt id="link-46" class="py-name"><a title="killerbee.openear.gps.WATCH_RARE
killerbee.openear.gps.client.WATCH_RARE
killerbee.openear.gps.gps'.WATCH_RARE
killerbee.zbwardrive.gps.WATCH_RARE
killerbee.zbwardrive.gps.client.WATCH_RARE
killerbee.zbwardrive.gps.gps'.WATCH_RARE" class="py-name" href="#" onclick="return doclink('link-46', 'WATCH_RARE', 'link-26');">WATCH_RARE</a></tt><tt class="py-op">:</tt> </tt>
<a name="L171"></a><tt class="py-lineno">171</tt>  <tt class="py-line">                <tt class="py-name">arg</tt> <tt class="py-op">+=</tt> <tt class="py-string">',"raw":0'</tt> </tt>
<a name="L172"></a><tt class="py-lineno">172</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">flags</tt> <tt class="py-op">&amp;</tt> <tt id="link-47" class="py-name"><a title="killerbee.openear.gps.WATCH_SCALED
killerbee.openear.gps.client.WATCH_SCALED
killerbee.openear.gps.gps'.WATCH_SCALED
killerbee.zbwardrive.gps.WATCH_SCALED
killerbee.zbwardrive.gps.client.WATCH_SCALED
killerbee.zbwardrive.gps.gps'.WATCH_SCALED" class="py-name" href="#" onclick="return doclink('link-47', 'WATCH_SCALED', 'link-28');">WATCH_SCALED</a></tt><tt class="py-op">:</tt> </tt>
<a name="L173"></a><tt class="py-lineno">173</tt>  <tt class="py-line">                <tt class="py-name">arg</tt> <tt class="py-op">+=</tt> <tt class="py-string">',"scaled":true'</tt> </tt>
<a name="L174"></a><tt class="py-lineno">174</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">flags</tt> <tt class="py-op">&amp;</tt> <tt id="link-48" class="py-name"><a title="killerbee.openear.gps.WATCH_DEVICE
killerbee.openear.gps.client.WATCH_DEVICE
killerbee.openear.gps.gps'.WATCH_DEVICE
killerbee.zbwardrive.gps.WATCH_DEVICE
killerbee.zbwardrive.gps.client.WATCH_DEVICE
killerbee.zbwardrive.gps.gps'.WATCH_DEVICE" class="py-name" href="#" onclick="return doclink('link-48', 'WATCH_DEVICE', 'link-29');">WATCH_DEVICE</a></tt><tt class="py-op">:</tt> </tt>
<a name="L175"></a><tt class="py-lineno">175</tt>  <tt class="py-line">                <tt class="py-name">arg</tt> <tt class="py-op">+=</tt> <tt class="py-string">',"device":"%s"'</tt> <tt class="py-op">%</tt> <tt class="py-name">outfile</tt> </tt>
<a name="L176"></a><tt class="py-lineno">176</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-49" class="py-name"><a title="killerbee.openear.gps.client.gpscommon.send
killerbee.zbwardrive.gps.client.gpscommon.send" class="py-name" href="#" onclick="return doclink('link-49', 'send', 'link-21');">send</a></tt><tt class="py-op">(</tt><tt class="py-name">arg</tt> <tt class="py-op">+</tt> <tt class="py-string">"}"</tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L177"></a><tt class="py-lineno">177</tt>  <tt class="py-line"> </tt>
<a name="dictwrapper"></a><div id="dictwrapper-def"><a name="L178"></a><tt class="py-lineno">178</tt> <a class="py-toggle" href="#" id="dictwrapper-toggle" onclick="return toggle('dictwrapper');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="killerbee.openear.gps.client.dictwrapper-class.html">dictwrapper</a><tt class="py-op">:</tt> </tt>
</div><div id="dictwrapper-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="dictwrapper-expanded"><a name="L179"></a><tt class="py-lineno">179</tt>  <tt class="py-line">    <tt class="py-docstring">"Wrapper that yields both class and dictionary behavior,"</tt> </tt>
<a name="dictwrapper.__init__"></a><div id="dictwrapper.__init__-def"><a name="L180"></a><tt class="py-lineno">180</tt> <a class="py-toggle" href="#" id="dictwrapper.__init__-toggle" onclick="return toggle('dictwrapper.__init__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="killerbee.openear.gps.client.dictwrapper-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-op">**</tt><tt class="py-param">ddict</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="dictwrapper.__init__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="dictwrapper.__init__-expanded"><a name="L181"></a><tt class="py-lineno">181</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__dict__</tt> <tt class="py-op">=</tt> <tt class="py-name">ddict</tt> </tt>
</div><a name="dictwrapper.get"></a><div id="dictwrapper.get-def"><a name="L182"></a><tt class="py-lineno">182</tt> <a class="py-toggle" href="#" id="dictwrapper.get-toggle" onclick="return toggle('dictwrapper.get');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="killerbee.openear.gps.client.dictwrapper-class.html#get">get</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">k</tt><tt class="py-op">,</tt> <tt class="py-param">d</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="dictwrapper.get-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="dictwrapper.get-expanded"><a name="L183"></a><tt class="py-lineno">183</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__dict__</tt><tt class="py-op">.</tt><tt id="link-50" class="py-name" targets="Method killerbee.GoodFET.SymbolTable.get()=killerbee.GoodFET.SymbolTable-class.html#get,Method killerbee.openear.gps.client.dictwrapper.get()=killerbee.openear.gps.client.dictwrapper-class.html#get,Method killerbee.zbwardrive.gps.client.dictwrapper.get()=killerbee.zbwardrive.gps.client.dictwrapper-class.html#get"><a title="killerbee.GoodFET.SymbolTable.get
killerbee.openear.gps.client.dictwrapper.get
killerbee.zbwardrive.gps.client.dictwrapper.get" class="py-name" href="#" onclick="return doclink('link-50', 'get', 'link-50');">get</a></tt><tt class="py-op">(</tt><tt class="py-name">k</tt><tt class="py-op">,</tt> <tt class="py-name">d</tt><tt class="py-op">)</tt> </tt>
</div><a name="dictwrapper.keys"></a><div id="dictwrapper.keys-def"><a name="L184"></a><tt class="py-lineno">184</tt> <a class="py-toggle" href="#" id="dictwrapper.keys-toggle" onclick="return toggle('dictwrapper.keys');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="killerbee.openear.gps.client.dictwrapper-class.html#keys">keys</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="dictwrapper.keys-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="dictwrapper.keys-expanded"><a name="L185"></a><tt class="py-lineno">185</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__dict__</tt><tt class="py-op">.</tt><tt id="link-51" class="py-name" targets="Method killerbee.openear.gps.client.dictwrapper.keys()=killerbee.openear.gps.client.dictwrapper-class.html#keys,Method killerbee.zbwardrive.gps.client.dictwrapper.keys()=killerbee.zbwardrive.gps.client.dictwrapper-class.html#keys"><a title="killerbee.openear.gps.client.dictwrapper.keys
killerbee.zbwardrive.gps.client.dictwrapper.keys" class="py-name" href="#" onclick="return doclink('link-51', 'keys', 'link-51');">keys</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="dictwrapper.__getitem__"></a><div id="dictwrapper.__getitem__-def"><a name="L186"></a><tt class="py-lineno">186</tt> <a class="py-toggle" href="#" id="dictwrapper.__getitem__-toggle" onclick="return toggle('dictwrapper.__getitem__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="killerbee.openear.gps.client.dictwrapper-class.html#__getitem__">__getitem__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">key</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="dictwrapper.__getitem__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="dictwrapper.__getitem__-expanded"><a name="L187"></a><tt class="py-lineno">187</tt>  <tt class="py-line">        <tt class="py-docstring">"Emulate dictionary, for new-style interface."</tt> </tt>
<a name="L188"></a><tt class="py-lineno">188</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__dict__</tt><tt class="py-op">[</tt><tt class="py-name">key</tt><tt class="py-op">]</tt> </tt>
</div><a name="dictwrapper.__setitem__"></a><div id="dictwrapper.__setitem__-def"><a name="L189"></a><tt class="py-lineno">189</tt> <a class="py-toggle" href="#" id="dictwrapper.__setitem__-toggle" onclick="return toggle('dictwrapper.__setitem__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="killerbee.openear.gps.client.dictwrapper-class.html#__setitem__">__setitem__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">key</tt><tt class="py-op">,</tt> <tt class="py-param">val</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="dictwrapper.__setitem__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="dictwrapper.__setitem__-expanded"><a name="L190"></a><tt class="py-lineno">190</tt>  <tt class="py-line">        <tt class="py-docstring">"Emulate dictionary, for new-style interface."</tt> </tt>
<a name="L191"></a><tt class="py-lineno">191</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__dict__</tt><tt class="py-op">[</tt><tt class="py-name">key</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">val</tt> </tt>
</div><a name="dictwrapper.__contains__"></a><div id="dictwrapper.__contains__-def"><a name="L192"></a><tt class="py-lineno">192</tt> <a class="py-toggle" href="#" id="dictwrapper.__contains__-toggle" onclick="return toggle('dictwrapper.__contains__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="killerbee.openear.gps.client.dictwrapper-class.html#__contains__">__contains__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">key</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="dictwrapper.__contains__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="dictwrapper.__contains__-expanded"><a name="L193"></a><tt class="py-lineno">193</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">key</tt> <tt class="py-keyword">in</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__dict__</tt> </tt>
</div><a name="dictwrapper.__str__"></a><div id="dictwrapper.__str__-def"><a name="L194"></a><tt class="py-lineno">194</tt> <a class="py-toggle" href="#" id="dictwrapper.__str__-toggle" onclick="return toggle('dictwrapper.__str__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="killerbee.openear.gps.client.dictwrapper-class.html#__str__">__str__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="dictwrapper.__str__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="dictwrapper.__str__-expanded"><a name="L195"></a><tt class="py-lineno">195</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-string">"&lt;dictwrapper: "</tt> <tt class="py-op">+</tt> <tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__dict__</tt><tt class="py-op">)</tt> <tt class="py-op">+</tt> <tt class="py-string">"&gt;"</tt> </tt>
</div><a name="L196"></a><tt class="py-lineno">196</tt>  <tt class="py-line">    <tt id="link-52" class="py-name" targets="Method killerbee.openear.gps.gps.satellite.__repr__()=killerbee.openear.gps.gps.satellite-class.html#__repr__,Method killerbee.openear.gps.gps'.gpsdata.__repr__()=killerbee.openear.gps.gps%27.gpsdata-class.html#__repr__,Method killerbee.zbwardrive.gps.gps.satellite.__repr__()=killerbee.zbwardrive.gps.gps.satellite-class.html#__repr__,Method killerbee.zbwardrive.gps.gps'.gpsdata.__repr__()=killerbee.zbwardrive.gps.gps%27.gpsdata-class.html#__repr__"><a title="killerbee.openear.gps.gps.satellite.__repr__
killerbee.openear.gps.gps'.gpsdata.__repr__
killerbee.zbwardrive.gps.gps.satellite.__repr__
killerbee.zbwardrive.gps.gps'.gpsdata.__repr__" class="py-name" href="#" onclick="return doclink('link-52', '__repr__', 'link-52');">__repr__</a></tt> <tt class="py-op">=</tt> <tt id="link-53" class="py-name" targets="Method killerbee.openear.gps.client.dictwrapper.__str__()=killerbee.openear.gps.client.dictwrapper-class.html#__str__,Method killerbee.zbwardrive.gps.client.dictwrapper.__str__()=killerbee.zbwardrive.gps.client.dictwrapper-class.html#__str__"><a title="killerbee.openear.gps.client.dictwrapper.__str__
killerbee.zbwardrive.gps.client.dictwrapper.__str__" class="py-name" href="#" onclick="return doclink('link-53', '__str__', 'link-53');">__str__</a></tt> </tt>
</div><a name="L197"></a><tt class="py-lineno">197</tt>  <tt class="py-line"> </tt>
<a name="L198"></a><tt class="py-lineno">198</tt>  <tt class="py-line"><tt class="py-comment">#</tt> </tt>
<a name="L199"></a><tt class="py-lineno">199</tt>  <tt class="py-line"><tt class="py-comment"># Someday a cleaner Python iterface using this machiner will live here</tt> </tt>
<a name="L200"></a><tt class="py-lineno">200</tt>  <tt class="py-line"><tt class="py-comment">#</tt> </tt>
<a name="L201"></a><tt class="py-lineno">201</tt>  <tt class="py-line"> </tt>
<a name="L202"></a><tt class="py-lineno">202</tt>  <tt class="py-line"><tt class="py-comment"># End</tt> </tt>
<a name="L203"></a><tt class="py-lineno">203</tt>  <tt class="py-line"> </tt><script type="text/javascript">
<!--
expandto(location.href);
// -->
</script>
</pre>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="killerbee-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            ><a class="navbar" target="_top" href="http://code.google.com/p/killerbee/">KillerBee</a></th>
          </tr></table></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    Generated by Epydoc 3.0.1 on Mon Dec 30 17:49:13 2013
    </td>
    <td align="right" class="footer">
      <a target="mainFrame" href="http://epydoc.sourceforge.net"
        >http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie();
  // -->
</script>
</body>
</html>
